projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c68a766
)
x86 svm: Fix PAT MSR handling when using Nested Paging.
author
Keir Fraser
<keir.fraser@citrix.com>
Wed, 12 Aug 2009 13:13:54 +0000
(14:13 +0100)
committer
Keir Fraser
<keir.fraser@citrix.com>
Wed, 12 Aug 2009 13:13:54 +0000
(14:13 +0100)
Accesses to the MSR should not be intercepted.
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen/arch/x86/hvm/svm/vmcb.c
patch
|
blob
|
history
diff --git
a/xen/arch/x86/hvm/svm/vmcb.c
b/xen/arch/x86/hvm/svm/vmcb.c
index 7366ecd22b6052d19fc9c21414f79cc32c8fa36f..6f1f087d88171cc6945d9d8525ee7c3173cac84f 100644
(file)
--- a/
xen/arch/x86/hvm/svm/vmcb.c
+++ b/
xen/arch/x86/hvm/svm/vmcb.c
@@
-243,6
+243,9
@@
static int construct_vmcb(struct vcpu *v)
* that need to be fixed up.
*/
vmcb->general1_intercepts &= ~GENERAL1_INTERCEPT_INVLPG;
+
+ /* PAT is under complete control of SVM when using nested paging. */
+ svm_disable_intercept_for_msr(v, MSR_IA32_CR_PAT);
}
else
{